{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[],"authorship_tag":"ABX9TyNsICrqBAwlVvRp9EnRT7X/"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"markdown","source":["# Tutorial1: Installation and Configuration"],"metadata":{"id":"cCpULO8Ikspi"}},{"cell_type":"markdown","source":["## Step1:Download the Repository"],"metadata":{"id":"CYPWiVRUlIKQ"}},{"cell_type":"code","source":["!git clone https://github.com/AMA-CMFAI/LAMBDA.git\n","%cd LAMBDA"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"Ll0Ih68_bP0w","executionInfo":{"status":"ok","timestamp":1751263329775,"user_tz":-480,"elapsed":1124,"user":{"displayName":"Stephen SUN","userId":"07825470795075407908"}},"outputId":"4326d6ea-ca70-4d80-f7df-d410e4b8f797"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Cloning into 'LAMBDA'...\n","remote: Enumerating objects: 198, done.\u001b[K\n","remote: Counting objects: 100% (198/198), done.\u001b[K\n","remote: Compressing objects: 100% (148/148), done.\u001b[K\n","remote: Total 198 (delta 87), reused 114 (delta 40), pack-reused 0 (from 0)\u001b[K\n","Receiving objects: 100% (198/198), 159.21 KiB | 1.36 MiB/s, done.\n","Resolving deltas: 100% (87/87), done.\n"]}]},{"cell_type":"markdown","source":["Make sure your python version is greater than 3.10"],"metadata":{"id":"zE1MoGLWlfDA"}},{"cell_type":"code","source":["!python --version"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"oRSwuHOmbg3p","executionInfo":{"status":"ok","timestamp":1751263418306,"user_tz":-480,"elapsed":99,"user":{"displayName":"Stephen SUN","userId":"07825470795075407908"}},"outputId":"baeb854e-aa4f-49a8-d47e-1a9f967a2e8c"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Python 3.11.13\n"]}]},{"cell_type":"markdown","source":["## Step2:Install Packages"],"metadata":{"id":"_ECsLeNdlvl8"}},{"cell_type":"code","source":["!pip install -r requirements.txt"],"metadata":{"id":"_kqWDfdLbolb"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["Install the trochvision (required by colab)"],"metadata":{"id":"X0k4JixTl2YH"}},{"cell_type":"code","source":["!pip install torchvision"],"metadata":{"id":"KuVWrcN9b0-g"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["Create a environment for code interpreter"],"metadata":{"id":"9WEGb2o_mAQ8"}},{"cell_type":"code","source":["!ipython kernel install --name lambda --user"],"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"wsqsK3djcB98","executionInfo":{"status":"ok","timestamp":1751264357262,"user_tz":-480,"elapsed":1004,"user":{"displayName":"Stephen SUN","userId":"07825470795075407908"}},"outputId":"2ba1d5bb-90f3-42eb-9651-300a867ce311"},"execution_count":null,"outputs":[{"output_type":"stream","name":"stdout","text":["Installed kernelspec lambda in /root/.local/share/jupyter/kernels/lambda\n"]}]},{"cell_type":"markdown","source":["## Configuration\n","Open the config.yaml in the left menu and set your api_key.\n","> Note, the APIKey you can get by purchase from companies like OpenAI and DeepSeek. Or you can get it by your local model.\n","For example, [Ollama](https://ollama.com/blog/openai-compatibility)\n","\n","![image.png]()"],"metadata":{"id":"beg3xYd8mna_"}},{"cell_type":"markdown","source":["## Start Data Analysis\n","Now, you can start the LAMBDA by on command."],"metadata":{"id":"Mpr8fbyqmTEY"}},{"cell_type":"code","source":["!python app.py"],"metadata":{"id":"LKNyJAWgc2_2"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["## You will see the link for open the system.\n","\n","![CleanShot 2025-06-30 at 14.56.22@2x.png]()"],"metadata":{"id":"IVEHciyzn54g"}},{"cell_type":"code","source":[],"metadata":{"id":"XUwoWNOxhkaD"},"execution_count":null,"outputs":[]}]}